<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../common/common.jsp" %>
<%
String action = ParamUtils.getStringParameter(request,"action");
String actionName = "发表";
if(action.equals("re"))
	actionName = "回复";
else if(action.equals("edit"))
	actionName = "编辑";

int classId = ParamUtils.getIntParameter(request, "classId", 0);
int topicId =  ParamUtils.getIntParameter(request,"topicId");	//如果topicId大于0则当前为回复，为0则是新的主题
int topicReId =  ParamUtils.getIntParameter(request,"topicReId");

String url = "topic_page.jsp?classId="+classId+"&topicId="+topicId +"&topicReId="+topicReId;
response.setHeader("Refresh", "3; URL="+url);
%>
<html>
<head>
<title><%=SYSTITLE%> - <%=actionName %>成功</title>
<meta name="Keywords" content="<%=SYSMETAKEY%>" />
<meta name="Description" content="<%=SYSMETADESC%>" />
<%@ include file="../common/meta.inc" %>
<link rel="stylesheet" type="text/css" href="css/defaultStyle.css" >
<script language="javascript" type="text/javascript" src="scripts/showMenu.js"></script>
</head>  
<body>
<%@ include file="../common/waiting.inc" %>
<SCRIPT language="javascript">

setStatus('<%=SYSTITLE%> - <%=actionName %>成功');
</SCRIPT>
<script language="javascript" type="text/javascript" src="template/scripts/topBar.js"></script>
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tab">
	<tr class="tab1" align="center" ><td height="25"><strong>文章<%=actionName %>成功,您现在可以……</strong></td></tr>
	<tr class="tab3" align="center" >
		<td height="25"><a href="class.jsp?classId=<%=classId %>" target="_self">返回文章所在版面！</a></td>
	</tr>
	<tr class="tab3" align="center" >
		<td height="25"><a href="<%=url %>">查看你所<%=actionName %>的文章！</a></td>
	</tr><tr class="tab3" align="center" >
		<td height="25"><span style="color:#bb0000">3秒后，自动跳转至文章！</span></td>
	</tr></table>	
<%=COPYRIGHTFOOT%>
<%@ include file="../common/foot.inc"%>
</body>
</html>
